Optimal. Leaf size=69 \[ -\frac{2 \sqrt{a} (A b-a B) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{b^{5/2}}+\frac{2 \sqrt{x} (A b-a B)}{b^2}+\frac{2 B x^{3/2}}{3 b} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0846432, antiderivative size = 69, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222 \[ -\frac{2 \sqrt{a} (A b-a B) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{b^{5/2}}+\frac{2 \sqrt{x} (A b-a B)}{b^2}+\frac{2 B x^{3/2}}{3 b} \]
Antiderivative was successfully verified.
[In] Int[(Sqrt[x]*(A + B*x))/(a + b*x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 10.9137, size = 63, normalized size = 0.91 \[ \frac{2 B x^{\frac{3}{2}}}{3 b} - \frac{2 \sqrt{a} \left (A b - B a\right ) \operatorname{atan}{\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}} \right )}}{b^{\frac{5}{2}}} + \frac{2 \sqrt{x} \left (A b - B a\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)*x**(1/2)/(b*x+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0667923, size = 63, normalized size = 0.91 \[ \frac{2 \sqrt{a} (a B-A b) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{b^{5/2}}+\frac{2 \sqrt{x} (-3 a B+3 A b+b B x)}{3 b^2} \]
Antiderivative was successfully verified.
[In] Integrate[(Sqrt[x]*(A + B*x))/(a + b*x),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.01, size = 78, normalized size = 1.1 \[{\frac{2\,B}{3\,b}{x}^{{\frac{3}{2}}}}+2\,{\frac{A\sqrt{x}}{b}}-2\,{\frac{Ba\sqrt{x}}{{b}^{2}}}-2\,{\frac{Aa}{b\sqrt{ab}}\arctan \left ({\frac{\sqrt{x}b}{\sqrt{ab}}} \right ) }+2\,{\frac{B{a}^{2}}{{b}^{2}\sqrt{ab}}\arctan \left ({\frac{\sqrt{x}b}{\sqrt{ab}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)*x^(1/2)/(b*x+a),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*sqrt(x)/(b*x + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.22367, size = 1, normalized size = 0.01 \[ \left [-\frac{3 \,{\left (B a - A b\right )} \sqrt{-\frac{a}{b}} \log \left (\frac{b x - 2 \, b \sqrt{x} \sqrt{-\frac{a}{b}} - a}{b x + a}\right ) - 2 \,{\left (B b x - 3 \, B a + 3 \, A b\right )} \sqrt{x}}{3 \, b^{2}}, \frac{2 \,{\left (3 \,{\left (B a - A b\right )} \sqrt{\frac{a}{b}} \arctan \left (\frac{\sqrt{x}}{\sqrt{\frac{a}{b}}}\right ) +{\left (B b x - 3 \, B a + 3 \, A b\right )} \sqrt{x}\right )}}{3 \, b^{2}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*sqrt(x)/(b*x + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 7.21998, size = 131, normalized size = 1.9 \[ \frac{2 B x^{\frac{3}{2}}}{3 b} + \frac{2 a \left (- A b + B a\right ) \left (\begin{cases} \frac{\operatorname{atan}{\left (\frac{\sqrt{x}}{\sqrt{\frac{a}{b}}} \right )}}{b \sqrt{\frac{a}{b}}} & \text{for}\: \frac{a}{b} > 0 \\- \frac{\operatorname{acoth}{\left (\frac{\sqrt{x}}{\sqrt{- \frac{a}{b}}} \right )}}{b \sqrt{- \frac{a}{b}}} & \text{for}\: x > - \frac{a}{b} \wedge \frac{a}{b} < 0 \\- \frac{\operatorname{atanh}{\left (\frac{\sqrt{x}}{\sqrt{- \frac{a}{b}}} \right )}}{b \sqrt{- \frac{a}{b}}} & \text{for}\: x < - \frac{a}{b} \wedge \frac{a}{b} < 0 \end{cases}\right )}{b^{2}} + \frac{2 \sqrt{x} \left (A b - B a\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)*x**(1/2)/(b*x+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.271619, size = 86, normalized size = 1.25 \[ \frac{2 \,{\left (B a^{2} - A a b\right )} \arctan \left (\frac{b \sqrt{x}}{\sqrt{a b}}\right )}{\sqrt{a b} b^{2}} + \frac{2 \,{\left (B b^{2} x^{\frac{3}{2}} - 3 \, B a b \sqrt{x} + 3 \, A b^{2} \sqrt{x}\right )}}{3 \, b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*sqrt(x)/(b*x + a),x, algorithm="giac")
[Out]